const mongoose = require("mongoose");
const appConfig = require("../config/config");

mongoose.connect(appConfig.dbUrl, (err) => {
    if (err) {
        console.log(err);
        return;
    }
    console.log(appConfig.dbUrl + "数据库连接成功");
});

module.exports = mongoose;